﻿@{
    ViewData["Title"] = "ShowBeginning";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div style="margin:20px 20px">
    <div style="margin:60px 60px">


        <div>

            <form class="layui-form layui-row layui-col-space0">

                <div class="layui-col-md3">
                    <div class="layui-form-item">
                        <label class="layui-form-label">耳号:</label>
                        <div class="layui-input-block ">
                            <input type="text" id="earNumber" placeholder="耳号" class="layui-input layui-input-inline">
                        </div>
                    </div>
                </div>

                <div class="layui-col-md3">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width:100px">当前电子耳号:</label>
                        <div class="layui-input-block ">
                            <input type="text" id="oldEarTag" placeholder="当前电子耳号" class="layui-input layui-input-inline">
                        </div>
                    </div>
                </div>

                <div class="layui-col-md3">
                    <div class="layui-form-item">
                        <label class="layui-form-label">新电子耳号:</label>
                        <div class="layui-input-block ">
                            <input type="text" id="newEarTag" placeholder="新电子耳号" class="layui-input layui-input-inline">
                        </div>
                    </div>
                </div>


                <div class="layui-col-md3">
                    <div class="layui-form-item" style="display: inline-block;">
                        <label class="layui-form-label">戴表原因：</label>
                        <div class="layui-input-inline" style="width: 200px;">
                            <select name="breed" id="reason" lay-filter="reasonSelect">
                                <option value="">戴表原因</option>
                            </select>
                        </div>
                    </div>
                </div>


            </form>

            <div class="layui-form-item" style="display: inline-block;">
                <button type="button" class="layui-btn layui-btn-primary" id="searchBtn">
                    <i class="layui-icon"></i> 搜 索
                </button>
                <a class="layui-btn layui-btn-danger layui-btn-normal delAll_btn">批量删除</a>
                <button type="button" class="layui-btn" onclick="onAddBtn()">添加</button>
            </div>


            <table id="ID-table-demo-setRowChecked"></table>
            <div id="pagesbox"></div>

            <!--弹出层添加/修改-->
            <div id="add-main" style="display: none;" >
                <form class="layui-form" id="add-form" action="" lay-filter="dataPage">
                    <div class="layui-form">
                        <div class="layui-form-item">
                            <div class="layui-form-item" style="display: inline-block;">
                                <label class="layui-form-label"><i style="color:red">*</i>耳号：</label>
                                <div class="layui-input-inline">
                                    <select id="ear" name="earNumber" lay-filter="earSel">
                                        <option value="">耳号</option>
                                    </select>
                                </div>
                            </div>

                            <div class="layui-form-item" style="display: inline-block;">
                                <label class="layui-form-label"><i style="color:red">*</i>当前电子耳号：</label>
                                <div class="layui-input-inline">
                                    <input class="layui-input" id="oldEarTags" name="oldEarTag" autocomplete="off">
                                </div>
                            </div>

                            <div class="layui-form-item" style="display: inline-block;">
                                <label class="layui-form-label"><i style="color:red">*</i>新电子耳号：</label>
                                <div class="layui-input-inline">
                                    <input class="layui-input" id="newEarTags" name="newEarTag" autocomplete="off">
                                </div>
                            </div>



                            <div class="layui-form-item" style="display: inline-block;">
                                <label class="layui-form-label"><i style="color:red">*</i>戴表原因：</label>
                                <div class="layui-input-inline" style="width: 200px;">
                                    <select name="breed" id="reasonsAdd" lay-filter="reasonSelect">
                                        <option value="">戴表原因</option>
                                    </select>
                                </div>
                            </div>

                            <input type="hidden" name="markId">

                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit lay-filter="save">立即提交</button>
                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                </div>
                            </div>
                </form>
            </div>
        </div>
    </div>

    <script src="~/js/eartag/showbeginning.js?BE=" +new Date()></script>

    <script type="text/html" id="barDemo">
        <div class="layui-btn-container">
                 <a class="layui-btn layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit">编辑</i></a>
            <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delete">删除</a>
        </div>
    </script>



